/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package SE2;

import java.util.GregorianCalendar;
import java.util.Vector;

/**
 * person which can purchase
 * @author rink
 */
public class Purchaser {
    /** purchaser name */
    private String name;
    /** purchaser password */
    private String password;
    /** returns the last login of purchaser */
    private GregorianCalendar lastLogin;
    /** a vector of purchases */
    private Vector<Purchase> vecPurchases;
    /** a vector of proposedProductionPlans */
    private Vector<ProposedProductionPlan> vecProposedProductionPlans;
    /** a vector of storeSituations*/
    private Vector<StoreSituation> vecStoreSituations;

    Purchaser(String name, String password, GregorianCalendar lastLogin)
    {
        this.name = name;
        this.password = password;
        this.lastLogin = lastLogin;
    }
    
    public GregorianCalendar getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(GregorianCalendar lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    //** to view store situation */
    public void viewStoreSituaton(){

    }

    /** to check the proposed production plan */
    public boolean checkProposedProductionPlan(){
        return true;
    }

    /** to do a purchase */
    public void makePurchase(){

    }

}
